package org.lemon.cla.converter;

import org.lemon.cla.enums.ClubMemberRoleEnum;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
class ClubMemberRoleEnumConverter implements Converter<String, ClubMemberRoleEnum> {
    @Override
    public ClubMemberRoleEnum convert(String source) {
        return ClubMemberRoleEnum.fromDescription(source);
    }
}